package wj.tree.functions;

import wj.WJValue;
import wj.tree.WJNode;

public class WriteNode implements WJNode{
	
	protected WJNode node;
		
	public WriteNode(WJNode node){
		this.node = node;
	}

	@Override
	public WJValue evaluate() {
		if(node != null)
			System.out.print(node.evaluate().toString());
		return WJValue.NULL;
	}
}
